﻿using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using akibank.Dossier.DossierContract;

namespace akibank.Dossier
{
  partial class DossierContractSharedHandlers
  {

    public virtual void CounterpartyChanged(akibank.Dossier.Shared.DossierContractCounterpartyChangedEventArgs e)
    {
      FillName();
    }

    public override void SubjectChanged(Sungero.Domain.Shared.StringPropertyChangedEventArgs e)
    {
      //base.SubjectChanged(e);
      FillName();
    }

    public override void DocumentKindChanged(Sungero.Docflow.Shared.OfficialDocumentDocumentKindChangedEventArgs e)
    {
      //base.DocumentKindChanged(e);
      Functions.DossierContract.SetStatePropertiesLoanApplication(_obj);
    }

    public virtual void BranchChanged(akibank.Dossier.Shared.DossierContractBranchChangedEventArgs e)
    {
      FillName();
    }

    public virtual void DocNumChanged(Sungero.Domain.Shared.StringPropertyChangedEventArgs e)
    {
      FillName();
    }

  }
}